// reducer

import { SET_CHANNEL } from '@/store/actionType'
const initState = []
function channel (state = initState, action) {
  console.log(action)
  if (action.type === SET_CHANNEL) {
    return action.payload
  }
  return state
}

export default channel
